﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using DemoMidiDuSkill.Model.Entity;
using System.Collections.ObjectModel;
using DemoMidiDuSkill.Tools.Aspect;

namespace DemoMidiDuSkill.ViewModel
{
    public class MainPage_ViewModel : ViewModelBase
    {
        #region Initialization

        /// <summary>
        /// Default constructor
        /// </summary>
        public MainPage_ViewModel()
        {
            //Initialize properties
            ListEmployee = new ObservableCollection<EmployeeEntity>();
            EmployeeToCreate = new EmployeeEntity();
        }

        #endregion

        #region Public properties

        /// <summary>
        /// List of employees
        /// </summary>
        [NotifyPropertyChanged(ViewModelBase.NotifyPropertyChanged_Name)]
        public ObservableCollection<EmployeeEntity> ListEmployee { get; set; }

        /// <summary>
        /// Employee to be created
        /// </summary>
        [NotifyPropertyChanged(ViewModelBase.NotifyPropertyChanged_Name)]
        public EmployeeEntity EmployeeToCreate { get; set; }

        #endregion

        #region Public methods

        /// <summary>
        /// Add the employee to create
        /// </summary>
        public void AddEmployee()
        {
            throw new NotImplementedException("Add employee is not implemented yet!");
        }

        #endregion
    }
}
